home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000…tember: Reference Library / Dev.CD Sep 00 RL Disk 1.toast / mac / Technical Documentation / Develop / Additional Articles / Developing Symbiotic Apps / Symbiotic Samples / UAppleEvents.cp Folder / CAERepeater.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-28  |  828 b   |  39 lines  |  [TEXT/CWIE]

  1. #pragma once
  2.  
  3. class CAERepeater : public LModelDirector
  4. {
  5. // constructor/destructor
  6. public:
  7.     CAERepeater(LModelObject* inDefaultModel);
  8.     ~CAERepeater(void);
  9.     
  10. // overides
  11. public:
  12.     void HandleAppleEvent(const AppleEvent& inAppleEvent, AppleEvent& outReply, Int32 inRefCon);
  13.     
  14.     inline void HandleOpenOrPrintEvent(const AppleEvent&, AppleEvent&, Int32)
  15.     {
  16.         ThrowOSErr_(errAEEventNotHandled);
  17.     }
  18.     
  19.     inline void HandleCreateElementEvent(const AppleEvent& inAppleEvent, AppleEvent& outReply, Int32 inRefCon)
  20.     {
  21.         HandleAppleEvent(inAppleEvent, outReply, inRefCon);
  22.     }
  23.                             
  24.  
  25. // interface
  26. public:
  27.     static CAERepeater* GetAERepeater(void);
  28.  
  29.     static void OpenConnection(TargetID& outTarget);
  30.  
  31. // utility functions
  32. private:
  33.     static void PrintAEDesc(const AEDesc& inAEDesc);
  34.         
  35. // storage
  36. private:
  37.     static Boolean sDebuggingEnabled;
  38. };
  39.